package com.zx.guice;

import javax.inject.Inject;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**  
 * @author zhaoxiang  
 * HellGuice实现类  
 */  
public class HelloGuiceImpl implements HelloGuice {   
	public static Logger logger = LoggerFactory.getLogger(HelloGuiceImpl.class);
  
  	@Inject
  	public UserInfo userInfo ;
  
  	@Inject
	public HelloGuiceImpl() {
		logger.info("construct injection!");   
	}
  	@Inject
	public void sayHello() {   
    	logger.info("Hello {},hello Guice!",userInfo.getUserName());   
    }   
    
}  